import request from '@/utils/request'

// 获取月卡列表
export const getMonthlyCardManagementListApi = (params) => request({
  url: '/parking/card/list',
  params
})

/**
 * 删除月卡
 */
export const delCardApi = (ids) => request({ url: `/parking/card/${ids}`, method: 'DELETE' })

// 添加月卡
export const addCardApi = (data) => request({ url: '/parking/card', method: 'POST', data })

/**
 * 获取月卡详情
 * @data
 * @returns
 */
export const getCardDetailApi = (Id) => request({ url: `/parking/card/detail/${Id}` })

/**
 * 更新月卡
 * @param {*} data
 * @returns
 */
export const updateCardApi = (data) => request({ url: '/parking/card/edit', method: 'PUT', data })

